import tkinter as tk
window = tk.Tk()
window.title('my window')
window.geometry('400x400')

canvas = tk.Canvas(window, bg='blue', height=100, width=200)
image_file = tk.PhotoImage(file='C:\\Users\\HDR\\OneDrive\\图片\\本机照片\\1.jpg')
image = canvas.create_image(20, 20, anchor='nw', image=image_file)

canvas.pack()
b = tk.Button(window, text='move', command=moveit)
b.pack()